<body>
<script>
if (window.testRunner)
    testRunner.dumpAsText();

window.addEventListener('DOMContentLoaded', function() {
    if (window.internals) {
        var success = internals.isPreloaded("resources/image1.png") && !internals.isPreloaded("resources/fail.png");
        console.log(success ? "PASS" : "FAIL");
    }
}, false);
</script>
This test requires DumpRenderTree to see the log of what resources are loaded.
<script src=resources/non-existant.js></script>
<script>document.write("<plaintext>");</script>
<input src=resources/fail.png type=BUTTON>
<input src=resources/image1.png type=IMAGE>
